#pragma once
#include <iostream>

class Date
{
public:
	void print(void) const;
	Date(int year = 1, int month = 1, int day = 1);
	//~Date(void);
	Date (const Date& d1);
	Date& operator=(const Date& d1);
	bool operator==(const Date& d1) const;
	bool operator>(const Date& d1) const;
	bool operator>=(const Date& d1) const;
	bool operator<(const Date& d1) const;
	bool operator<=(const Date& d1) const;
	bool operator!=(const Date& d1) const;
	int getmonthday(int year, int month);
	Date operator+(const int& day);
	Date& operator+=(const int& day);
	Date operator-(const int& day);
	Date& operator-=(const int& day);
	Date& operator++(void);
	Date operator++(int);
	Date& operator--(void);
	Date operator--(int);
	int operator-(const Date& d1) const;
	const Date* operator&() const;
	//void Print(Date* const this);
	//void Print(const Date* const this);

private:
	int _year;
	int _month;
	int _day;
};